import { useMemo } from 'react';
import leaseStore from '@/stores/LeaseStore';

export default function useLease() {
  const {pendingLeaseList} = leaseStore;

  /**
   * 租客租赁申请的数量
   */
  const leasePendingNoticeNum = useMemo(() => pendingLeaseList.length, [pendingLeaseList]);

  return {
    leasePendingNoticeNum
  };
}